<?php
class RCMSSession {
	public function set($name, $value) {
		$_SESSION[$name] = $value;
	}

	public function get($name, $default = null) {
		if (isset($_SESSION[$name])) {
			return $_SESSION[$name];
		}
		return $default;
	}

	public function remove($name){
		unset($_SESSION[$name]);
	}

	public function clear(){
		$_SESSION = array();
	}

}